/**
 * 入口文件 reducer/index.js
 *    combineReducers()     合并 reducer 的函数
 */
import { combineReducers } from 'redux'
import todoReducer from './todo'
import userReducer from './user'

// 合并 reducer
const rootReducer = combineReducers({
  todo: todoReducer,
  user: userReducer,
})

// 导出合并后的 reducer
export default rootReducer
